package com.flx.at.spring.code.test.testimportselect.config;

import com.flx.at.spring.code.test.testimportselect.component.ImportSelectA;
import com.flx.at.spring.code.test.testimportselect.select.MyBeanRegister;
import com.flx.at.spring.code.test.testimportselect.select.MyImportSelect;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

import javax.annotation.PostConstruct;

/**
 * @Author: Fenglixiong
 * @Date: 2021/7/3 17:00
 * @Description:
 */
@Configuration
@Import(value = {ImportSelectA.class,MyImportSelect.class, MyBeanRegister.class})
public class ImportSelectConfig implements InitializingBean {

    public ImportSelectConfig(){
        System.out.println("ImportSelectConfig construct...");
    }

    @PostConstruct
    public void init(){
        System.out.println("ImportSelectConfig PostConstruct init...");
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        System.out.println("ImportSelectConfig InitializingBean init...");
    }
}
